<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/30
 * Time: 10:26
 */

namespace app\admin\model;


use think\Model;

class User extends Model
{
    //定义主键
    protected $pk="uid";
    public function setPasswordAttr($value){
        return password_hash($value, PASSWORD_DEFAULT);
    }
}